package com.itheima.variable;

/**
 * @author yuanying
 * @date 2025/7/22 -  9:25
 */
public class ForDemo3 {
    public static void main(String[] args) {
        for(int i=100;i<=999;i++){
            int ge =i%10;
            int shi=i/10%10;
            int bai=i/100;
            if((ge*ge*ge+shi*shi*shi+bai*bai*bai)==i){
                System.out.println(i);
        }
        }
    }
}
